package com.zfzs.post.model.vo;

import lombok.Data;

import java.util.List;

/**
 * @description:
 * @author: ck
 * @create: 2019-09-25 18:45
 **/
@Data
public class PolicyKindVO implements Comparable<PolicyKindVO>{

    /**
     * 主键id
     */
    private String id;
    /**
     * 中文名
     */
    private String name;

    /**
     * 排序
     */
    private Integer store;

    /**
     * 政策
     */
    private List<PolicyVO> chilPpolicyList;

    //根据重新sort排序
    @Override
    public int compareTo(PolicyKindVO policyKindVO) {
        return this.store - policyKindVO.getStore();
    }
}
